#include "10_18.h";
#include<iostream>
using namespace std;
void test1()
{
	SL sl ;
	SeqListInit(&sl);
	SeqListPushBack(&sl, 1);
	SeqListPushBack(&sl, 2);
	SeqListPushBack(&sl, 3);
	SeqListPushBack(&sl, 4);
	SeqListPushFront(&sl, 4);
	SeqListPushFront(&sl, 4);
	SeqListPopFront(&sl);
	SeqListPopFront(&sl);
	
	SeqListPrint(&sl);
	cout << endl;
	SeqListInsert(&sl, 3, 10);
	SeqListPrint(&sl);
	
}
void test2()
{
	SL sl;
	SeqListInit(&sl);
	SeqListPushBack(&sl, 1);
	SeqListPushBack(&sl, 2);
	SeqListPushBack(&sl, 3);
	SeqListPushBack(&sl, 4);
	SeqListPushBack(&sl, 5);
	SeqListPushBack(&sl, 6);
	SeqListPushBack(&sl, 7);
	SeqListPushBack(&sl, 8);
	//SeqListPopFront(&sl);
	SeqListPrint(&sl);
	cout << endl;
	SeqListErace(&sl, 0);
	SeqListPrint(&sl);

}


int main()
{
//	test1();
	test2();
	return 0;
}